﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001271 RID: 4721
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SummonPetCsReq : IMessage<SummonPetCsReq>, IMessage, IEquatable<SummonPetCsReq>, IDeepCloneable<SummonPetCsReq>, IBufferMessage
	{
		// Token: 0x17003BDF RID: 15327
		// (get) Token: 0x0600D3CB RID: 54219 RVA: 0x0023A6B4 File Offset: 0x002388B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SummonPetCsReq> Parser
		{
			get
			{
				return SummonPetCsReq._parser;
			}
		}

		// Token: 0x17003BE0 RID: 15328
		// (get) Token: 0x0600D3CC RID: 54220 RVA: 0x0023A6BB File Offset: 0x002388BB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SummonPetCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003BE1 RID: 15329
		// (get) Token: 0x0600D3CD RID: 54221 RVA: 0x0023A6CD File Offset: 0x002388CD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SummonPetCsReq.Descriptor;
			}
		}

		// Token: 0x0600D3CE RID: 54222 RVA: 0x0023A6D4 File Offset: 0x002388D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SummonPetCsReq()
		{
		}

		// Token: 0x0600D3CF RID: 54223 RVA: 0x0023A6DC File Offset: 0x002388DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SummonPetCsReq(SummonPetCsReq other) : this()
		{
			this.summonedPetId_ = other.summonedPetId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600D3D0 RID: 54224 RVA: 0x0023A701 File Offset: 0x00238901
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SummonPetCsReq Clone()
		{
			return new SummonPetCsReq(this);
		}

		// Token: 0x17003BE2 RID: 15330
		// (get) Token: 0x0600D3D1 RID: 54225 RVA: 0x0023A709 File Offset: 0x00238909
		// (set) Token: 0x0600D3D2 RID: 54226 RVA: 0x0023A711 File Offset: 0x00238911
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SummonedPetId
		{
			get
			{
				return this.summonedPetId_;
			}
			set
			{
				this.summonedPetId_ = value;
			}
		}

		// Token: 0x0600D3D3 RID: 54227 RVA: 0x0023A71A File Offset: 0x0023891A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SummonPetCsReq);
		}

		// Token: 0x0600D3D4 RID: 54228 RVA: 0x0023A728 File Offset: 0x00238928
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SummonPetCsReq other)
		{
			return other != null && (other == this || (this.SummonedPetId == other.SummonedPetId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600D3D5 RID: 54229 RVA: 0x0023A758 File Offset: 0x00238958
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.SummonedPetId != 0U)
			{
				num ^= this.SummonedPetId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600D3D6 RID: 54230 RVA: 0x0023A797 File Offset: 0x00238997
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600D3D7 RID: 54231 RVA: 0x0023A79F File Offset: 0x0023899F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600D3D8 RID: 54232 RVA: 0x0023A7A8 File Offset: 0x002389A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.SummonedPetId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.SummonedPetId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600D3D9 RID: 54233 RVA: 0x0023A7DC File Offset: 0x002389DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.SummonedPetId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SummonedPetId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600D3DA RID: 54234 RVA: 0x0023A81A File Offset: 0x00238A1A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SummonPetCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.SummonedPetId != 0U)
			{
				this.SummonedPetId = other.SummonedPetId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600D3DB RID: 54235 RVA: 0x0023A84B File Offset: 0x00238A4B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600D3DC RID: 54236 RVA: 0x0023A854 File Offset: 0x00238A54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 72U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.SummonedPetId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040054D1 RID: 21713
		private static readonly MessageParser<SummonPetCsReq> _parser = new MessageParser<SummonPetCsReq>(() => new SummonPetCsReq());

		// Token: 0x040054D2 RID: 21714
		private UnknownFieldSet _unknownFields;

		// Token: 0x040054D3 RID: 21715
		public const int SummonedPetIdFieldNumber = 9;

		// Token: 0x040054D4 RID: 21716
		private uint summonedPetId_;
	}
}
